package com.hnust.root.dao.entity.domain.forward;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("user_like")
@NoArgsConstructor
public class UserLike {
    private static final long serialVersionUID = 1L;

    @TableId
    private int id;
    //用户OpenId
    @TableField("open_id")
    private String openId;

    //话题ID
    @TableField("topic_id")
    private int topicId;

    //是否赞
    @TableField("liked")
    private boolean liked ;

    public UserLike(String openId, int topicId, boolean liked) {
        this.openId = openId;
        this.topicId = topicId;
        this.liked = liked;
    }

}
